<?php echo  $this->render("header") ?>
<?php $this->column_num=5;; ?>
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="pageNav">
	<tr>
		<td>共 <strong><?php echo  $this->pager['total'] ?></strong>, 显示 <strong><?php echo  $this->pager['from'] ?> - <?php echo  $this->pager['to'] ?></strong></td>
		<td align="right"><?php echo  $this->pager['html'] ?></td>
	</tr>
</table>
<form name="towmList" method="post" >
<table width="100%"  border="0" cellspacing="1" cellpadding="3" class="tableOutborder">
	<tr class="tableHeader"><td colspan="<?php echo  $this->column_num ?>"><B>&nbsp;区域列表</B></td></tr>
	<tr class="tableHeader">
		<td width="4%" align="center"><input type="checkbox" name="checkbox" onclick="DoSelectAll(this, 'arr_ids')"></td>
		<td width="4%" align="center">ID</td>
		<td width="10%" align="center">栏目名称</td>
		<td width="27%" align="center">操作</td>
	</tr>
	<?php $this->index=0;; ?>
	<?php if(is_array($this->lists)){foreach($this->lists as $this->one) { ?>
	<tr class="bg_<?php echo  $this->index++%2 ?>">
		<td align="center"><input type="checkbox" name="arr_ids[]" value="<?php echo  $this->one['id'] ?>"></td>
		<td align="center">&nbsp;<?php echo  $this->one['id'] ?></td>
		<td align="center">&nbsp;<?php echo  $this->one['name'] ?></td>
		<td align="center">
			<?php if($this->one['children'] ){?>
			<input type="button" class="thickbox" value="添加子栏目" alt="ajax/add.php?id=0&amp;table=<?php echo  $this->table ?>&amp;TB_iframe=true&amp;keepThis=true&amp;height=455&amp;width=420&amp;modal=true"/>
			<?php }?>
			<input type="button" class="thickbox" value="编 辑" alt="ajax/edit.php?id=<?php echo  $this->one['id'] ?>&amp;table=<?php echo  $this->table ?>&amp;TB_iframe=true&amp;keepThis=true&amp;height=455&amp;width=420&amp;modal=true"/>
			<input type="button" value="删 除" onclick="DoDelete(<?php echo  $this->one['id'] ?>, 'town')"/>
		</td>
	</tr>
	<?php }}?>

	<?php if($this->lists){?>
	<tr class="tableHeader">
		<td align="center">
			<input type="checkbox" name="checkbox" onclick="DoSelectAll(this, 'arr_ids')">
		</td>
		<td colspan="<?php echo  $this->column_num-1 ?>">
			<input type="button" value=" 删除 " onclick="DoDelete(GetCheckValue(this,'arr_ids'),'town');">
			<input type="button" class="thickbox" value=" 添 加 " alt="ajax/add.php?id=0&amp;table=<?php echo  $this->table ?>&amp;TB_iframe=true&amp;keepThis=true&amp;height=455&amp;width=420&amp;modal=true"/>
		</td>
	</tr>
	<?php } else { ?>
	<tr class="bg_0">
		<td colspan="<?php echo  $this->column_num ?>">&nbsp;未搜索到任何匹配的影片信息！</td>
	</tr>
	<?php }?>
</table>

<table width="100%" border="0" cellspacing="1" cellpadding="3" class="pageNav">
	<tr>
		<td>共 <strong><?php echo  $this->pager['total'] ?></strong>, 显示 <strong><?php echo  $this->pager['from'] ?> - <?php echo  $this->pager['to'] ?></strong></td>
		<td align="right"><?php echo  $this->pager['html'] ?></td>
	</tr>
</table>
<?php echo  $this->render("footer") ?>
